Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix acceptance test setup to work on local linux #754

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mtekel
Copy link
Contributor

@mtekel mtekel commented Jan 8, 2025

Few minor fixes to acceptance test scripts and setup so that they can run fine on localhost running linux.

mtekel added 5 commits January 7, 2025 16:54
Try to read FOCUS variable before you set -u, otherwise
it breaks script if params are empty.
When running tests in container, current repository is
checked out in /repo folder, which needs adding to safe dirs,
as git doesn't like default attributes of mounted folders.
It seems bpm release location has moved. Currently residing in S3 and
it gets downloaded as uuid file name. Fix this so that rest of the tests
can continue working with same old expected file name.
@mtekel mtekel marked this pull request as ready for review January 9, 2025 08:41
@mtekel mtekel requested review from CFN-CI and a team as code owners January 9, 2025 08:41
Comment on lines +19 to +20
git config --global --add safe.directory /repo
git config --global --add safe.directory /repo/src/ttar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It make senses to introduce a variable for the path /repo/src/ttar, since you use it in another scripts in the same folder (ci/scripts)

Comment on lines +10 to +11
git config --global --add safe.directory /repo
git config --global --add safe.directory /repo/src/ttar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It make senses to introduce a variable for the path /repo/src/ttar, since you use it in another scripts in the same folder (ci/scripts)

@mtekel
Copy link
Contributor Author

mtekel commented Jan 9, 2025

This is more of patching, just to make it work. Scripts run with -e, so any issue in the middle of the execution (which can take say 10 or 15 mins to arrive to that point) means aborting of everything.

There also is a lot of duplication (in general) between these two scripts (acceptance-tests and shell). Then there's handling of BPM release (also being fixed in this PR) - but haproxy brings own version and uses that instead.

We have decided to create improvements/tech debt story to address all of that. This PR remains "light" to get it working for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants